package com.jieshuibao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jieshuibao.model.db.QuestionUserOwnMsg;
import com.jieshuibao.model.db.User;
import com.jieshuibao.model.db.UserExample;

public interface UserMapper {
    int countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(String phoneNumber);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(String phoneNumber);
    // 根据手机号码  查询用户详细信息
    QuestionUserOwnMsg selectUserMsgByPhoneNum(String phoneNumber);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectPage(UserExample example);
}